package com.situ.mall.service;

import java.util.List;

import com.situ.mall.pojo.entity.Category;
import com.situ.mall.util.JSONResult;

public interface ICategoryService {

	JSONResult selectBypage(Integer page, Integer limit, String name);

	boolean deleteByPrimaryKey(Integer id);

	boolean deleteAll(Integer[] ids);

	List<Category> selectTopCategory();

	List<Category> selectSecondCategory(Integer topCategoryId);

	JSONResult selectCategoryCount();

	List<Category> selectSecondCategoryList();

	Integer selectParentIdByProduct(Integer categoryId);

}
